import React from 'react';
import { useCountDown } from 'web-component';

export default () => {
  const [leftTime] = useCountDown({
    start: 60,
    onTimeout: () => {
      alert('count down finish...');
    },
  });

  return (
    <div>
      left Time:
      <br />
      {leftTime}
    </div>
  );
};
